﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucNewProducts.ascx.cs"
    Inherits="VINETLIFE.Module.ucNewProducts" %>
<%@ Register Src="ucShowCart.ascx" TagName="ucShowCart" TagPrefix="uc1" %>
<div class="newproduct">
    <div class="heading">
        <div class="heading1">
            <a href="/san-pham-moi/" title="Sản phẩm mới">
                <h3 class="heading2">
                    SẢN PHẨM MỚI</h3>
            </a>
        </div>
    </div>
    <div class="foo-news">
        <div id="foo-new-product">
            <asp:Repeater runat="server" ID="rptNewProduct" OnItemCommand="rptNewProduct_ItemCommand">
                <ItemTemplate>
                    <div class="product">
                        <a class="a-hover" href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                            title='<%#Eval("ProductTitle") %>'>
                            <img src='/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                title='<%#Eval("ProductTitle") %>' />
                            <div class="product-no-promotion">
                                <p class="hidden p-title">
                                    <%#Eval("ProductTitle") %></p>
                                <p class="h-old-price" style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important;'>
                                    <%#Eval("Price","{0:0,0} VNĐ") %></p>
                                <p class="hidden p-price">
                                    <%#VINETLIFE.Ultility.GetPrice(Eval("ProductID")) %>
                            </div>
                        </a>
                        <div class="action-product">
                            <div class="product-button">
                                <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                            </div>
                        </div>
                        <span class="new-product-span">MỚI</span>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="clear">
        </div>
    </div>
    <!-- Element to pop up -->
    <%--<uc1:ucShowCart ID="ucShowCart1" runat="server" />--%>
    <a href="#" id="slide-next-new" class="slidex-prev" style="display: block;"><span></span>
    </a><a href="#" id="slide-prev-new" class="slidex-next" style="display: block;"><span>
    </span></a>
</div>
